Skip to content

Conversation

levkk
Copy link
Collaborator

@levkk levkk commented Jun 17, 2025

Description

Add two more load balancing preferences:

  • replicas_only_with_failover: Use replicas for read queries, unless they all fail, and then try the primary. Make sure to set read_write_split = "include_primary" (or leave default)
  • primary_only_with_failover: Use primary for read traffic unless it's banned, and failover to replicas. Same note on read_write_split as above.

Example

[[users]]
name = "analytics"
database = "prod"
load_balancing_strategy = "replicas_only_with_failover"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant